package design.patttern.singleton.lazy;
/**
 * Created by SliverZhang on 2018/1/15.
 */
public class Singleton {

    private static Singleton uniqueInstance;

    private Singleton(){

    }

    public static synchronized Singleton getUniqueInstance(){
        if (uniqueInstance == null){
            uniqueInstance = new Singleton();
        }
        return uniqueInstance;
    }
}
